$(function () {
    $("body").on('click', '.goToTask', function () {
        var examRecordId = $(this).data("id");
        window.location.href = baseloaction + '/mobile/uc/exam/startExamination?examRecordId=' + examRecordId;
    }).on('click', '.goToResult', function () {
        var taskId = $(this).data("id");
        window.location.href = baseloaction + '/mobile/uc/operation/operationResult?taskId=' + taskId;
    });


    loadMyClassTaskData(1);


    function loadMyClassTaskData(pageNo) {
        var params = {
            "examId": $("#examId").val()
        }

        params = JSON.stringify(params);
        loadMobilePathData({
            url: baseloaction + '/mobile/uc/operation/ajax/examRecord',
            contextId: 'task-class-list',
            pageNo: pageNo,
            pageCall: loadMyClassTaskData,
            params: params,
            callback: function (pageNo) {
            }
        });
    }
});
